{extend name='main'}

{block name="content"}
<div class="think-box-shadow table-block">
    {include file='appointment/index_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
            </th>
            <th class='text-left'>ID</th>
            <th class='text-left'>会议室</th>
            <th class='text-left'>预约时间</th>
            <th class='text-left'>预约人</th>
            <th class='text-left'>预约人电话</th>
            <th class='text-left'>会议主题</th>
            <th class='text-left'>预约部门</th>
            <th class='text-left'>预约描述</th>
            <th class='text-left'>预约状态</th>
            <th class="text-left">操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key => $vo}
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
            </td>
            <td class='text-left'>{$vo.id}</td>
            <td class='text-left'>{$vo.room|default='-'}</td>
            <td class='text-left'>{:format_datetime($vo.star_time,'Y年m月d H:i:s')}—{:format_datetime($vo.end_time,'Y年m月d H:i:s')}</td>
            <td class='text-left'>{$vo.username|default='-'}</td>
            <td class='text-left'>{$vo.phone|default='-'}</td>
            <td class='text-left'>{$vo.title|default='-'}</td>
            <td class='text-left'>{$vo.dep_name|default='-'}</td>
            <td class='text-left'>{$vo.remake|default='-'}</td>
            <td class='text-left'>{:htmlspecialchars_decode($vo.status_name)}</td>
            <td class='text-left nowrap'>
                <a class="layui-btn  layui-btn-xs" data-confirm="确定要通过吗?" data-action="{:url('adopt')}" data-value="id#{$vo.id}" >通 过</a>
                <a class="layui-btn layui-btn-danger layui-btn-xs" data-confirm="确定要驳回吗?" data-action="{:url('reject')}" data-value="id#{$vo.id}" >驳 回</a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>

    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}

</div>
{/block}
